import request from "../utils/request.js"

//显示一般数据
export function getHouseList(params){
	return request({
		url: "http://localhost:8080/houseNew/list",
		method: "get",
		params
	})
}
//分页显示数据
export function getHouseListByPage(params){
	return request({
		url: "http://localhost:8080/houseNew/showHouseNewTable",
		method: "get",
		params
	})
}
export function addHouseList(data){
	return request({
		url: "http://localhost:8080/houseNew/insert",
		method: "post",
		data
	}) 
}

export function updateHouseList(data){
	return request({
		url: "http://localhost:8080/houseNew/update",
		method: "post",
		data
	}) 
}

export function deleteHouseList(params){
	return request({
		url: "http://localhost:8080/houseNew/delete",
		method: "get",
		params
	}) 
}